import React, { useEffect,useRef } from 'react'
// import SonComp from "@comp/SonComp"
import ContextParent from '../../../components/ContextParent'

export default function Main() {
  const tempRef = useRef()
  const sonRef = useRef()
  useEffect(() => {
    // console.log(Main.UlElement);
    // console.log(tempRef.current);
    console.log(sonRef);
  }, [])
  return (
    <div>
      {/* <h3 ref={tempRef}>Main</h3>
      <ul ref={element => Main.UlElement = element}>
        <li>小王</li>
        <li>小张</li>
        <li>小李</li>
      </ul> */}
      {/* <SonComp ref={sonRef}></SonComp> */}
      <ContextParent></ContextParent>
    </div>
  )
}
